const Stomp=require('stomp-client');
const base=require('../config/base');
var ak=new base();
var destination=ak.jms.merchant_jms_destination;
var client=new Stomp(ak.jms.jms_ip,ak.jms.jms_port,'admin','admin');

var sendM=function checkMerchant(data) {
    client.connect(function (sessionId) {
        client.publish(destination,data);
    });
}

function merchantCheckJms(){
    this.sendM=sendM;
}


module.exports=merchantCheckJms;